from flask import Flask,request,json,jsonify,render_template
from . import upload_fuc

# 处理文件上传请求
def upload():
    if request.method == 'GET': # 获取文件上传页面
        return render_template('upload.html')
    elif request.method == 'POST': # 接收文件上传
        res = upload_fuc.upload()
        return res